class Account_roleFormModel extends Backbone.Model
    url: '/mytable/getModel?s=table.creators.Account_roleTable'
    initialize: (options) =>
        @fetch()
   
#--------------------------------------------------controler
class Account_rolesApp
    search: =>
        myapp.mainRegion.close() 
        mymodel = new Account_roleFormModel
        @layout = new ModelMainLayout(model: mymodel)
        myapp.mainRegion.show(@layout)

            

#--------------------------------------------------router
class Account_rolesAppRouter extends Backbone.Marionette.AppRouter
    appRoutes: 
        "account_roles": "search"

                
myapp.addInitializer -> 
    myapp.Account_roles_app = new Account_rolesApp()
    myapp.Account_roles_app.router = new Account_rolesAppRouter controller: myapp.Account_roles_app

myapp.vent.trigger("routing:started")
